//package com.example.tests;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class DealerCIS_idrWelcome_TextVerify extends SeleneseTestCase {
	@Before
	public void setUp() throws Exception {
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.gfwfn.com/idrLogin.php");
		selenium.start();
	}

	@Test
	public void testUntitled() throws Exception {
		selenium.open("/idrLogin.php");
		selenium.type("id=txtSalesCode", "99999");
		selenium.click("name=submit");
		selenium.waitForPageToLoad("30000");
		verifyTrue(selenium.isElementPresent("link=www.americanidol.com"));
		verifyTrue(selenium.isElementPresent("link=Official Rules"));
		verifyTrue(selenium.isElementPresent("link=Privacy Statement"));
		verifyTrue(selenium.isElementPresent("link=CA Privacy Statement"));
		verifyTrue(selenium.isElementPresent("css=h3"));
		verifyTrue(selenium.isTextPresent("I signed up online."));
		verifyTrue(selenium.isTextPresent("Welcome!"));
		verifyTrue(selenium.isElementPresent("css=h2"));
		verifyTrue(selenium.isElementPresent("//form[@id='regForm']/table/tbody/tr/td[2]/h3"));
		verifyTrue(selenium.isTextPresent("I just walked in."));
		verifyTrue(selenium.isTextPresent("Register right now by clicking \n the button below!"));
		verifyTrue(selenium.isElementPresent("css=strong"));
		verifyTrue(selenium.isElementPresent("css=img"));
		verifyTrue(selenium.isElementPresent("name=submit"));
		verifyTrue(selenium.isElementPresent("id=txtEmail"));
		verifyTrue(selenium.isTextPresent("Email Address:"));
		verifyTrue(selenium.isElementPresent("css=label"));
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("id=header"));
	}
	

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}
